package com.youku.component.variable;

import com.youku.component.CaseStep;
import com.youku.component.TestCase;
import com.youku.expression.Expression;

/**
 * 如果标签含有default，并且是定义在template中的，表示这是局部变量的定义
 * 
 * @author loda
 *
 */
public class LocalDefVariable extends LocalVariable {

	public LocalDefVariable(String name, String expressionString, TestCase testCase) {
		super(name, expressionString, testCase);
	}

	public LocalDefVariable() {
	}

	@Override
	public CaseStep cloneStep() {
		LocalDefVariable variable = new LocalDefVariable();
		variable.name = name;
		variable.attribute = attribute;
		variable.expression = new Expression(expression.getPosition(), expression.getExpressionString());
		return variable;
	}

}
